package cn.yunhe.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import cn.yunhe.service.UserService;



/**
 * 用户业务控制器
 * 
 * @author YUNHE
 *
 */

@Controller
@RequestMapping("/user1")
public class UserController{
    @Autowired
	private UserService userService;
    
    @RequestMapping("/get1")
	public ModelAndView getUser11(String username){
		System.out.println(12);
		
		userService.selectUser(1);
		
		Map<String,String> csMap = new HashMap<String,String>();
		csMap.put("username", username);
		
		return new ModelAndView("user",csMap);
	}
	
}
